﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace UIs
{
    public static class AttachedProperty
    {


        public static string GetRawText(DependencyObject obj)
        {
            return (string)obj.GetValue(RawTextProperty);
        }

        public static void SetRawText(DependencyObject obj, string value)
        {
            obj.SetValue(RawTextProperty, value);
        }

        // Using a DependencyProperty as the backing store for RawText.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty RawTextProperty =
            DependencyProperty.RegisterAttached("RawText", typeof(string), typeof(AttachedProperty), new PropertyMetadata(string.Empty));

        
    }
}
